import unittest
from Daywu.yuekao.Po.TestCase.TestCase import TestCase

# 执行1
suite=unittest.TestLoader().loadTestsFromTestCase(TestCase)
run=unittest.TextTestRunner().run(suite)

# 执行2
# suite=unittest.defaultTestLoader.discover(start_dir='D:\python pojects\Daywu\yuekao\Po\TestCase\TestCase.py',pattern='TestCase.py')
# run1=unittest.TextTestRunner().run(suite)

# 执行3
# suite=unittest.TestSuite()
# suite.addTest(TestCase('test_01_search'))
# run2=unittest.TextTestRunner().run(suite)